<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<style> 
</style> 
<div class="row">
	<div class="col-lg-12" style="min-height:100px;">
		<div class="search-input">
			<textarea rows="5" cols="70" id="reasons" name="reasons"></textarea>
		</div>
		<div style="width: 100%;margin:0 auto;"><button class="btn btn-success search-btn" onclick="doCancel();" >确定</button></div>
		<div class="clearfix"></div>
	</div>
</div>
<script type="text/javascript">
var id="${id}";
function doCancel(){
var reason=$("#reasons").val();
	Kit.confirm("提示","确定要驳回申请吗？",function(ref){
		$.post("${BASE_PATH}/bus/goods/base/doCancel",{id:id,reason:reason},function(result){
			if(result.flag==0){
				onEditSuccess(result.object);
				toCancelDialog.close();
			}else{
				Kit.alert("操作失败");return;
			}
			
		});
	});
}
</script>